package com.xjt.java.thread;

public class TwoThread {

	/**
	 * @param args
	 * @throws InterruptedException 
	 */
	public static void main(String[] args) throws InterruptedException {
		MyThread it1 = new MyThread();
		Thread p1 = new Thread(it1);
		MyThread it2 = new MyThread();
		Thread p2 = new Thread(it2);
		p1.setPriority(Thread.MAX_PRIORITY );
		p1.setPriority(Thread.MIN_PRIORITY);
		p1.start();
		p2.start();
		Thread.sleep(100);
		it1.stop();
		it2.stop();

	}

}
